// pages/menu/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    menuArr:[
      {
        id:1,
        title:"我的邮箱",
        imageUrl:"/assets/icon/menu/通知类.png",
        navigateToUrl:"/pages/menu/inform/index"
      },
      {
        id:2,
        title:"一键上报",
        imageUrl:"/assets/icon/menu/上报问题.png",
        navigateToUrl:"/pages/menu/report/index"
      },
      {
        id:3,
        title:"家庭维修",
        imageUrl:"/assets/icon/menu/Repair.png",
        navigateToUrl:"/pages/menu/repair/index"
      },
      {
        id:4,
        title:"垃圾分类",
        imageUrl:"/assets/icon/menu/垃圾分类查询.png",
        navigateToUrl:"/pages/menu/rubbish/index"
      },
      {
        id:6,
        title:"在线问诊",
        imageUrl:"/assets/icon/menu/wenzhen.png",
        navigateToUrl:"/pages/menu/wenzhen/index"
      },
      {
        id:7,
        title:"问诊记录",
        imageUrl:"/assets/icon/menu/msg.png",
        navigateToUrl:"/pages/menu/xiaoxi/index"
      }
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  // 控制页面跳转
  navigate(e){
    let navigateToUrl = e.target.id
    console.log(navigateToUrl);
    wx.navigateTo({
      url: navigateToUrl,
    })
  },
})